VT-d: constrain IGD check
authorJan Beulich <jbeulich@suse.com>
Tue, 21 Mar 2023 12:46:39 +0000 (13:46 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 21 Mar 2023 12:46:39 +0000 (13:46 +0100)
commitf971f5c531ce6a5fd6c1ff1f525f2c6837eeb78d
tree03af798398a3939a08e87ce7fc1d33d30f993269
parentd84612ecab00ab31c09a7c5a5892906edbacaf5b
VT-d: constrain IGD check

Marking a DRHD as controlling an IGD isn't very sensible without
checking that at the very least it's a graphics device that lives at
0000:00:02.0. Re-use the reading of the class-code to control both the
clearing of "gfx_only" and the setting of "igd_drhd_address".

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
master commit: f8c4317295fa1cde1a81779b7e362651c084efb8
master date: 2023-03-14 10:44:08 +0100
xen/drivers/passthrough/vtd/dmar.c